package com.fujica.invoicing.controller;

import com.fujica.invoicing.service.IStoreService;
import com.fujica.invoicing.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName StoreController
 * @Description TODO
 * @Author admin
 * @Date 2020/8/11 14:18
 * @Version 1.0
 **/

@RestController
@Slf4j
@Api(tags = "商店")
@RequestMapping("invoicing/store")
public class StoreController {

    @Autowired
    private IStoreService iStoreService;

    /**
     * 查找门店
     * @return
     */
    @GetMapping
    @ApiOperation(value = "商店列表", notes = "商店列表")
    public Result list() {
        return iStoreService.list();
    }




}
